package com.yang.rabbitmqconsumer.config;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author yanwei.yang
 * @date 2020/4/3 13:49
 * @description: 扇形消息消费类
 */
@Component
@RabbitListener(queues = "fanout.A")
public class FanoutReceiverA {

    @RabbitHandler
    private void process(Map<String, Object> message) {
        System.out.println("FanoutReceiverA消费者收到消息  : " + message.toString());
    }
}
